﻿<Window x:Class="SmallProgram.Controls.MessageBox"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Name="messageBoxDialog"        
        WindowStartupLocation="CenterScreen" 
        WindowStyle="SingleBorderWindow" 
        ResizeMode="NoResize" 
        SizeToContent="WidthAndHeight"
        ShowInTaskbar="False">
    <DockPanel>
        <Border BorderBrush="#B27C7C7C" BorderThickness="0">
            <StackPanel Orientation="Vertical" Background="#FFFFFFFF">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Image Name="iconImageControl" Grid.Column="0" Width="64" Height="64" VerticalAlignment="Top" Margin="8" />
                    <StackPanel Orientation="Vertical" Grid.Column="1" VerticalAlignment="Center">
                        <TextBlock Margin="4" TextWrapping="WrapWithOverflow" TextBlock.FontFamily="Segoe UI" TextBlock.FontSize="16" TextBlock.Foreground="#FF002AB5" Text="{Binding ElementName=messageBoxDialog, Path=Description}" />
                        <ContentControl Name="optionalContentControl" Margin="4" FontFamily="Segoe UI" FontSize="12" Content="{Binding ElementName=messageBoxDialog, Path=OptionalContent}" />
                    </StackPanel>
                </Grid>
                <Border HorizontalAlignment="Stretch" Margin="0, 8, 0, 0" Padding="4" BorderBrush="#B2CBCBCB" BorderThickness="0,1,0,0" Background="#B2EBEBEB">
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                        <Button Name="okButton" Width="60" Margin="4" Visibility="Collapsed" IsDefault="False" Content="OK" Click="OnButtonClick" />
                        <Button Name="yesButton" Width="60" Margin="4" Visibility="Collapsed" IsDefault="False" Content="Yes" Click="OnButtonClick" />
                        <Button Name="noButton" Width="60" Margin="4" Visibility="Collapsed" IsDefault="False" Content="No" Click="OnButtonClick" />
                        <Button Name="retryButton" Width="60" Margin="4" Visibility="Collapsed" IsDefault="False" Content="Retry" Click="OnButtonClick" />
                        <Button Name="cancelButton" Width="60" Margin="4" Visibility="Collapsed" IsDefault="False" Content="Cancel" Click="OnButtonClick" />
                        <Button Name="closeButton" Width="60" Margin="4" Visibility="Collapsed" IsDefault="False" Content="Close" Click="OnButtonClick" />
                    </StackPanel>
                </Border>
                <StackPanel Name="footerPanel">
                    <Border HorizontalAlignment="Stretch" BorderBrush="#B2959595" BorderThickness="0,1,0,0" Background="#B2EBEBEB" />
                    <Border HorizontalAlignment="Stretch" Padding="4" BorderBrush="#FFFFFFFF" BorderThickness="0,1,0,0" Background="#B2EBEBEB">
                        <ContentControl Margin="4" FontFamily="Segoe UI" FontSize="12" Content="{Binding ElementName=messageBoxDialog, Path=Footer}" />
                    </Border>
                </StackPanel>
            </StackPanel>
        </Border>
    </DockPanel>
</Window>
